package cn.stylefeng.guns.base.util;

import cn.hutool.core.thread.ThreadFactoryBuilder;

import java.util.concurrent.*;

/**
 * @author eric xu
 * @date 2020/6/8
 * @description
 */
public class GunsTheadPool {
    private static ThreadFactory gunsThreadFactory = new ThreadFactoryBuilder()
            .setNamePrefix("strategy-modify-event-redis-").build();

    public static ExecutorService pool = new ThreadPoolExecutor(1,1,
            0L, TimeUnit.MILLISECONDS,
            new LinkedBlockingQueue<Runnable>(1024), gunsThreadFactory, new ThreadPoolExecutor.AbortPolicy());

}
